
const {
    basePath,
    sourceDir,
    sourceDirJS,
    targetArr,
    allDirectory
} = require('./config')
const {gzipFile, cmdRun, zipDirtory} = require('./utils')
const path = require('path')

targetArr.forEach(item=>{
    let targetPath = path.join(allDirectory, `${item.name}.zip`)
    // cmdRun(`echo.>${targetPath}`).then(()=>{
        zipDirtory(item.baseTargetPath, targetPath)
    // })
    console.log('压缩:', targetPath)
})